Skip to content

Conversation

chrisbmar
Copy link

"setupTestFrameworkScriptFile" is now deprecated. It was replaced by "setupFilesAfterEnv" which supports multiple paths in an array.

Nice work on setting up Jest and Enzyme with Typescript and React! The README is very clear to follow.

"setupTestFrameworkScriptFile" is now deprecated. It was replaced by "setupFilesAfterEnv" which supports multiple paths in an array. 

Nice work on setting up Jest and Enzyme with Typescript and React! The README is very clear to follow.
@cedrickchee
Copy link
Owner

Hi @chrisbmar Thank you for your PR.

I'm using Jest version 23.6.0 and never received the deprecation message.

// package.json

"jest": "^23.4.2",

I tried replacing "setupTestFrameworkScriptFile" by "setupFilesAfterEnv" and encountered an error: "Unknown option "setupFilesAfterEnv" with value ...".

Jest config option "setupTestFrameworkScriptFile" was deprecated in version 24.0.0.

What is your Jest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants